
import { createBrowserRouter, } from "react-router-dom"
import { lazy } from "react"
const Error404 = lazy(() => import("@/pages/errorPages/404/404"))
const Error403 = lazy(() => import("@/pages/errorPages/403"))
const Login = lazy(() => import("@/pages/login/index.tsx"))
const Hooks = lazy(() => import("@/pages/hooks"))
const routes = [{
  path: "/404",
  element: <Error404 />,
},
{
  path: "/403",
  element: <Error403 />,
},
{
  path: "/",
  element: <Hooks />,
},
{
  path: "/login",
  element: <Login />,
},
{
  path: "/hooks",
  element: <Hooks />,
},
]



const router = createBrowserRouter(routes)
export default router
